<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <title>layui在线调试</title>
    <link rel="stylesheet" th:href="@{/webjars/layui/2.5.4/css/layui.css}" href="//res.layui.com/layui/dist/css/layui.css?t=1568076536509" media="all">
    <link rel="stylesheet" type="text/css" th:href="@{/css2/H-ui.admin.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css2/H-ui.min.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css2/iconfont.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css2/skin.css}" id="skin" />
    <link rel="stylesheet" type="text/css" th:href="@{/css2/jquery.contextMenu.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css2/style.css}"/>
</head>
<body>
<div class="page-container">
    <div class="mt-20">
        <table id = "tbo" class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th width="100">ID</th>
                <th width="100">标题</th>
                <th width="100">类别</th>
                <th width="100">来源</th>
                <th width="100">时间</th>
                <th width="100">状态</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            <!--<tr class="text-c" th:each="hh:${list}">
                <th width="100" th:text="${hh.rent_id}"></th>
                <th width="100" th:text="${hh.rent_article_title}"></th>
                <th width="100" th:text="${hh.itemCategory.item_name}"></th>
                <th width="100" th:text="${hh.rent_source}"></th>
                <th width="100" th:text="${#dates.format(hh.rent_date,'yyyy-MM-dd HH:mm:ss')}"></th>
                <th width="100" th:text="${hh.consultState.state_name}"></th>
                <th width="100"><a class="btn btn-sm btn-primary" th:href="@{/selectid/}+${hh.rent_id}">编辑</a>
                    <button th:attr="del_uri=@{/emp/}+${hh.rent_id}"  class="btn btn-sm btn-danger deleteBtn">删除
                    </button>
                </th>
            </tr>-->
            </tbody>

        </table>
    </div>
</div>
</body>
<script th:src="@{/webjars/jquery/2.1.1/jquery.js}"></script>
<script th:src="@{/js2/jquery.dataTables.min.js}"></script>
<script>
    $(document).ready(function(){
        $(function(){
            $('#tbo').DataTable({
                "aLengthMenu":[2,4,8],
                "aaSorting": [
                    [ 1, "desc" ]
                ]//默认第几个排序
            });
        });
    });
</script>
</html>